
set(TARGET_NAME "HttpServerDemo")


aux_source_directory(${CMAKE_CURRENT_LIST_DIR} SRC_CPP)

file(GLOB ${CMAKE_CURRENT_LIST_DIR}/*.h H_HEAD)

file(GLOB ${CMAKE_CURRENT_LIST_DIR}/*.ui UI_FILES)


find_package(Qt5 COMPONENTS Widgets Core Network REQUIRED)

add_executable(${TARGET_NAME} ${SRC_CPP} ${H_HEAD} ${UI_FILES})

#target_compile_definitions(${PROJECT_NAME} PRIVATE "-DDECLSPEC=__declspec(dllexport)")

target_link_libraries(${TARGET_NAME}
                        Qt5::Core
                        Qt5::Network
                        Qt5::Widgets
                        HttpServer
                        TestQtPlugin
                        )
